import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../components/HelloWorld.vue"
import Login from "../views/LoginView.vue"
import HomeView from "../views/HomeView.vue"

Vue.use(VueRouter);
 
const router = new VueRouter({
  mode: 'hash', // 使用 hash 模式
  routes: [
    {
      path: '/HelloWorld',
      name: 'Home',
      component: Home
    },
	{
		path: '/',
		name: 'Login',
		component: Login
	},
	{
		path:'/HomeView',
		name:'HomeView',
		component:HomeView
	}
  ]
});
 
export default router;